package com.jl.jlapp.utils;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Bitmap.CompressFormat;
import java.io.ByteArrayOutputStream;

public class FileUtil
{
  public static byte[] bitmapToBytes(Bitmap paramBitmap)
  {
    ByteArrayOutputStream localByteArrayOutputStream = new ByteArrayOutputStream();
    paramBitmap.compress(CompressFormat.JPEG, 100, localByteArrayOutputStream);
    return localByteArrayOutputStream.toByteArray();
  }
  
  public static String saveFile(Context paramContext, String paramString, Bitmap paramBitmap)
  {
    return saveFile(paramContext, "", paramString, paramBitmap);
  }
  
  public static String saveFile(Context paramContext, String paramString1, String paramString2, Bitmap paramBitmap)
  {
    return saveFile(paramContext, paramString1, paramString2, bitmapToBytes(paramBitmap));
  }
  
  /* Error */
  public static String saveFile(Context paramContext, String paramString1, String paramString2, byte[] paramArrayOfByte)
  {

    return "";
  }
}


/* Location:              /Users/davidzhang/Documents/decompileApk/jlfood-dex2jar.jar!/com/jl/jlapp/utils/FileUtil.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */